package 享元模式;


import java.awt.*;

// 具体享元类
class Circle implements Shape {
    private Color color;
 
    public Circle(Color color) {
        this.color = color;
    }
 
    @Override
    public void draw(int x, int y) {
        System.out.println("Drawing a " + color + " circle at (" + x + "," + y + ")");
    }
}